//
//  WeatherTableViewCell.m
//  Today
//
//  Created by dllo on 15/5/22.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "WeatherTableViewCell.h"

@implementation WeatherTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return  self;
}
- (void)create{
    self.backview = [[UIImageView alloc] init];
    [self.contentView addSubview:self.backview];
    
    self.citylabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.citylabel];
    
    self.templabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.templabel];
    
    self.weatherlabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.weatherlabel];
    
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.backview.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height * 2);
    self.backview.image = [UIImage imageNamed:@"背景.jpg"];
    
    self.citylabel.frame = CGRectMake(140, 80, 100, 40);
    self.citylabel.textColor = [UIColor whiteColor];
    self.citylabel.font = [UIFont systemFontOfSize:50];

    self.templabel.frame = CGRectMake(140, 130, 120, 30);
    self.templabel.textColor = [UIColor whiteColor];
    self.templabel.font = [UIFont systemFontOfSize:20];
    
    self.weatherlabel.frame = CGRectMake(140, 160, 120, 30);
    self.weatherlabel.textColor = [UIColor whiteColor];
    self.weatherlabel.textAlignment = uitextal
    self.weatherlabel.font = [UIFont systemFontOfSize:20];
    
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
